

<form style="padding:5px; width:100%;" id="frm-search" method="post" class="cari" action="<?php echo $own_links;?>search">
	<input type="hidden" name="column" value="all" />
	<img src="<?php echo themeUrl();?>images/cari.png" align="left" />
	<input type="text" name="keyword" value="<?php echo isset($key)?$key:'';?>" size="20" />
    <select name="column">
		<?php cat_search($cat_search);?>
    </select>
	<input type="text" id="dstart" name="dstart" value="<?php echo $this->jCfg['isearch']['start_date'];?>" size="8" class="picker"/> s/d 
	<input type="text" name="dend" id="dend" value="<?php echo $this->jCfg['isearch']['end_date'];?>" size="8" class="picker" />
	<input type="submit" name="cari" class="btn-cari" value="Cari" />
	<input type="button" onclick="document.location=SELF_URL" name="reset" class="btn-reset" value="Reset" />
    <?php 
		$pp = $this->jCfg['isearch']['per_page'];
		$st = isset($this->jCfg['isearch']['status'])?$this->jCfg['isearch']['status']:"all";
	?>
	<select style="padding:5px; height:30px; float:right; margin-right:10px; cursor:pointer;" name="per_page" class="item_submit">
		<option value="5" <?php echo ($pp=='5')?'selected="selected"':'';?> >5</option>
		<option value="10" <?php echo ($pp=='10')?'selected="selected"':'';?> >10</option>
		<option value="50" <?php echo ($pp=='50')?'selected="selected"':'';?>>50</option>
		<option value="100" <?php echo ($pp=='100')?'selected="selected"':'';?>>100</option>
		<option value="200" <?php echo ($pp=='200')?'selected="selected"':'';?>>200</option>
	</select>
</form>
<div class="clr"></div>
<?php echo $paging;?>
<div class="clr"></div>

<table class="data">
	<tr>
		<th width="30px">No</th>  
        <th>Priode </th>
        <th>Nama Client</th>
         <th>Tanggal Upload</th>
        <th width="50px">-</th>
	</tr>
    <?php if(isset($data) && count($data) > 0){
			foreach($data as $r){
				$bm = explode("-",$r->kd_bulan);
		?>
     		<tr>
            	<td><?php echo ++$no;?></td>
                <td><?php echo $this->bulan[$bm[1]].", ".$bm[0];?></td>
                <td><?php echo $r->pa_name;?></td>
                <td><?php echo myDate($r->tgl_entry);?></td>
				<td>
                	<?php link_action($links_table_item,$r->kd_id);?>
                </td>
            </tr>   
    <?php } 
	}
	?>
</table>


<?php echo $paging;?>
<script language="javascript">
$('.item_submit').change(function(){
	$('#frm-search').submit();
});
</script>